<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>1 拼团-产品详情页</title>
<link  href="__PUBLIC__/Wechat/api/css/style.css" rel="stylesheet"  type="text/css">
<script type="text/javascript" src="__PUBLIC__/Wechat/api/js/jquery-1.7.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/Wechat/api/js/huadong.js"></script>
<!-- <script type="text/javascript" src="__PUBLIC__/Wechat/api/js/wmx80.js"></script> -->
<script type="text/javascript" src="__PUBLIC__/Wechat/api/js/index.js"></script>	
<script language="javascript">
    	$(document).ready(mall_obj.productDetail);  	
</script>
</head>

<body bgcolor="#f5f5f5">
<div class="header">
	<h1>商品详情</h1>
    <a href="javascript:history.back()" class="arrow-wrap"><em class="arrow-left"></em></a>
</div>
<div class="wrap">
<div class="banner bgfff">
    <div id="slideBox" class="slideBox">
        <div class="bd">
          <ul>
          <foreach name="data.imgpath" item="vo">
            <li><img src="{$vo}" /></li></foreach>

          </ul>
        </div>
        <div class="hd"><ul></ul></div>
      </div>
      <div class="words"><img src="__PUBLIC__/Wechat/api/images/bannerxfbg.png"><i>{$data.remark}</i></div>
    <script type="text/javascript">TouchSlide({slideCell:"#slideBox",titCell:".hd ul",mainCell:".bd ul",effect:"leftLoop",autoPage:true,autoPlay:true});</script>
</div>
<div class="productinfor bgfff">
	<span class="right">当前已有<ins>{$count}</ins>个团队开团啦！</span>
    <h2>{$data.name}</h2>
    <p>市场价：<i>￥{$data.oriprice}</i></p>
</div>
<div class="goodsprices bgfff">
	<ul>
		<foreach name="productgroup" item="vo">
		<if condition="$group['groupnumber'] eq 0">
    	<li><span>{$vo.groupnumber}人成团价：<em>￥{$vo.price}</em></span><a href="javascript:;" nid="{$vo.id}">去开团<img src="__PUBLIC__/Wechat/api/images/arrowr.png"></a></li>
    	<elseif condition="$group['groupnumber'] eq $vo['groupnumber']"/>
    		<if condition="$group['status'] eq 5">
    		<li><span>{$vo.groupnumber}人成团价：<em>￥{$vo.price}</em></span><a href="javascript:;" status="5">已取消<img src="__PUBLIC__/Wechat/api/images/arrowr.png"></a></li>
    		<elseif condition="$group['status'] eq 6"/>
    		<li><span>{$vo.groupnumber}人成团价：<em>￥{$vo.price}</em></span><a href="javascript:;" status="6">已过期<img src="__PUBLIC__/Wechat/api/images/arrowr.png"></a></li>
    		<elseif condition="$group['groupnumber'] eq $group['hasjoin']"/>
    		<li><span>{$vo.groupnumber}人成团价：<em>￥{$vo.price}</em></span><a href="javascript:;" num="full">已满<img src="__PUBLIC__/Wechat/api/images/arrowr.png"></a></li>    		
    		<elseif condition="$group['jion'] eq 1"/>
    		<li><span>{$vo.groupnumber}人成团价：<em>￥{$vo.price}</em></span><a href="javascript:;" num="jion">已参加<img src="__PUBLIC__/Wechat/api/images/arrowr.png"></a></li> 
    		<else/>
    		<li><span>{$vo.groupnumber}人成团价：<em>￥{$vo.price}</em></span><a href="javascript:;" nid="{$vo.id}">去参加<img src="__PUBLIC__/Wechat/api/images/arrowr.png"></a></li>
    		</if>
    	
    	</if>
    	</foreach>
     </ul>
</div>
<div class="goodsdetails bgfff">
	<div class="btn"><a>商品详情</a></div>
    <p>{$data.description}</p>
</div>

<div class="shoppingprocess bgfff">
	<div class="btn"><a>购物跟进流程</a><a href="?s=Mall/rule">查看详情</a></div>
    <ul>
    	<li><span class="active">选择喜欢的商品开团</span></li>
        <li><i></i></li>
        <li><span>完成支付</span></li>
        <li><i></i></li>
        <li><span>邀请好友参团分享你发现的商品</span></li>
        <li><i></i></li>
        <li><span>团购成功通知</span></li>
    </ul>
</div>
</div>
<div class="graybg"></div>
<div class="selectprice">
  <div class="part1 pr">
   	<div class="pic"><img src="{$data.coverimg}"></div>
      <ul>
       	  <li><i>￥<i class="price"></i></i></li>
          <li>库存<span class="restnum"></span>件</li>
          <li>请选择{$data.spec}</li>
      </ul>
    </div>
    <div class="part2">
    	<span>{$data.spec}</span>
    	<ul class="clearfix">
    	<foreach name="spec" item="vo">
        	<li><i restnumber="{$vo.restnumber}" sid="{$vo.id}">{$vo.spectype}</i></li>
        	</foreach>
            <!-- <li><i class="active">牛奶味 </i></li> -->
        </ul>
    </div>
    <div class="part3 clearfix">
    	<b>购买数量</b>
        <span><i class="minus">-</i><input type="text" class="webtxt" value="1" readonly><i class="plus">+</i></span>
    </div>
    <div class="btns"><a>确 定</a></div>
    <div class="closed"></div>
</div>
	<input type="hidden" id="productid" value="{$data.id}">
	<input type="hidden" id="productgroupid" value=""> 
	<input type="hidden" id="gid" value=""> 
</body>
</html>
